﻿$(document).ready(function() {

	$("a#daddress").click(function() {// 执行不了
		var href = $(this).attr("href");
		if (confirm("确定要删除该地址吗？")) {
			window.location.href = href;
		}
		return false;
	});

	$("a#updateAddress").click(function() {
		var hre = $(this).attr("href");
		$.XYTipsWindow({
			___title : "修改地址",
			___content : "iframe:" + hre,
			___width : "500",
			___height : "320",
			___showbg : true,
			___drag : "___boxTitle"

		});
		return false;
	});

	$("#addaddress").click(function() {
		$.XYTipsWindow({
			___title : "新增地址",
			___content : "iframe:/shopping/common/addAddress.jsp",
			___width : "500",
			___height : "320",
			___showbg : true,
			___drag : "___boxTitle"

		});
		return false;
	});

	parent.$.XYTipsWindow.removeBox();
});